<h1>Listing student_enrollments</h1>

<table>
  <tr>
    <th>Student</th>
    <th>Group</th>
    <th>Grade</th>
    <th>Enrollment type</th>
  </tr>

<% @student_enrollments.each do |student_enrollment| %>
  <tr>
    <td><%=h student_enrollment.student %></td>
    <td><%=h student_enrollment.group %></td>
    <td><%=h student_enrollment.grade %></td>
    <td><%=h student_enrollment.enrollment_type %></td>
    <td><%= link_to 'Show', student_enrollment %></td>
    <td><%= link_to 'Edit', edit_student_enrollment_path(student_enrollment) %></td>
    <td><%= link_to 'Destroy', student_enrollment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New student_enrollment', new_student_enrollment_path %>